package com.yycwxt.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.apache.poi.hpsf.Decimal;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@TableName("imp_gdpxstj")
public class Sale {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "zq不能为空")
    @NotNull(message = "zq不能为空")
    @ExcelProperty("账期")
    private String zq;

    @NotBlank(message = "dp不能为空")
    @NotNull(message = "dp不能为空")
    @Length(min = 30, max = 40, message = "编码长度为4-10")
    @ExcelProperty("店铺名称")
    private String dp;

    @ExcelProperty("销售额")
    private int xse;

    @ExcelProperty("退款额")
    private int tke;

    @ExcelProperty("SD金额")
    private int sdje;

    @ExcelProperty("试吃")
    private int sc;

    @ExcelProperty("实际销售金额")
    private int sjxsje;

    @ExcelProperty("销售订单")
    private int xsdd;

    @ExcelProperty("SD订单")
    private int sddd;

    @ExcelProperty("订单数")
    private int dds;

    @ExcelProperty("SD佣金")
    private int sdyj;

    @ExcelProperty("直通车")
    private int ztc;

    @ExcelProperty("超级推荐")
    private int cjtj;

    @ExcelProperty("钻石展位")
    private int zszw;

    @ExcelProperty("淘宝客")
    private int tbk;

    @ExcelProperty("京东")
    private int jd;

    @ExcelProperty("拼多多")
    private int pdd;

    @ExcelProperty("备用1")
    private int by1;

    @ExcelProperty("备用2")
    private int by2;

    @ExcelProperty("备用3")
    private int by3;

    @ExcelProperty("备用4")
    private int by4;

    @ExcelProperty("备用5")
    private int by5;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("创建日期")
    private LocalDateTime created;

}
